from rest_framework.pagination import PageNumberPagination


class StandardResultsSetPagination(PageNumberPagination):
    page_size = 2    # 每页多少条数据
    page_size_query_param = 'page_size'    # 前端传入的关键字
    max_page_size = 20     # 允许前端最多可以传多少个数据
